<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>


<html>
	<head>
		<s:head theme="ajax" />

		<title>userInput.jsp</title>
		<link rel="stylesheet" type="text/css" href="../../css/counter.css">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">

		<link rel="stylesheet" type="text/css" href="../../css/css.css">
		<script type="text/javascript">
	function validateUser(){
	
	if(document.getElementById('name').value==""){
    alert("用户名不能为空");
	}
	
	if(document.getElementById('emailaddr').value==""){
	alert("STMP不能为空！");
	return false;
	}
	
	
	}
	
	</script>

	</head>

	<body>
		<br>
		<form method="post" action="saveEmailSet.action" name="form1"
			onsubmit="return validateUser();">
			<s:hidden name="emailSet.id"></s:hidden>
			<TABLE cellSpacing="0" cellPadding="0" width="100%" align="center"
				border="0">
				<TBODY>
					<TR>
						<TD>
							<IMG src="../../images/manage/arron1.gif">
							<FONT class="font_lv">新增发件人 </FONT>
						</TD>
					</TR>
				</TBODY>
			</TABLE>
			<table cellSpacing="1" cellPadding="1" width="100%" align="center"
				border="0">
				<tr>
					<td class=line>
						<table height="100%" cellSpacing=1 cellPadding=2 width="100%"
							bgcolor="#CCCCCC" border=0>
							<tr bgcolor="#FFFFFF">
								<td height="25" colspan="2" align="center"
									background="../../images/manage/title_bg.jpg" class="font_12_B_w">
									发件人添加
								</td>
								<td height="25" colspan="2"
									background="../../images/manage/title_bg.jpg">
									注意
									<font color="red">*</font>表示必填项；英文和数字应为半角字符
								</td>



							</tr>

							<tr bgcolor="#FFFFFF">
								<td width="294" height="25">
									用户名
								</td>
								<td width="581">
									<s:textfield name="emailSet.name" id="name" theme="simple" size="25"></s:textfield>
								</td>
								<td width="476" height="25">
									<font color="red">*</font>发件人用户名
								</td>
							</tr>

							<tr bgcolor="#FFFFFF">
								<td height="29">
									邮件地址
								</td>
								<td>
									<s:textfield name="emailSet.emailaddr"  id="emailaddr" theme="simple" size="25"></s:textfield>
								</td>
								<td width="476" height="25">
									<font color="red">*</font>你的邮件地址
								</td>
							</tr>
							<tr bgcolor="#FFFFFF">
								<td height="30">
									SMTP服务器
								</td>
								<td>
									<s:select name="emailSet.stmp" theme="simple" id="stmp"
										list="#{'smtp.163.com':'smtp.163.com','smtp.126.com':'smtp.126.com','smtp.sina.com':'smtp.sina.com','smtp.yahoo.com':'smtp.yahoo.com'}"></s:select>
								</td>
								<td width="476" height="25">
									<font color="red">* </font>选择
								</td>
							</tr>
							<tr bgcolor="#FFFFFF">
								<td height="26">
									备注
								</td>
								<td>
									<s:textarea name="emailSet.remark" id="remaik" theme="simple" cols="20"
										rows="10"></s:textarea>
								</td>
								<td width="476" height="25">
									<font color="red">*</font>
								</td>
							</tr>

							<tr bgcolor="#FFFFFF">
								<td height="33">
									&nbsp;

								</td>
								<td>
									<input type="submit" name="Submit" class="btn1" value="提交">
									<input type="button" class="btn1" name="Submit2"
										onclick="history.go(-1);" value="取消">
								</td>
								<td width="476" height="25">
									&nbsp;
								</td>
							</tr>
						</table>

					</td>

				</tr>
			</table>
		</form>
		<s:url id="smdUrl" namespace="/admin" action="findUser" />
	</body>


</html>
